package com.bjsxt.collection;

import java.util.Stack;

public class StackTest {
    public static void main(String[] args) {
        Stack<String> stack = new Stack<>();
        stack.push("a");
        stack.push("b");
        stack.push("a");
        stack.push("c");
        System.out.println(stack);
        System.out.println(stack.search("b"));
        System.out.println(stack.peek());
        System.out.println(stack.pop());

    }
}
